export interface ApiResponse<T> {
  code: number;
  success: boolean;
  message: string;
  data?: T;
}

// 用户登录
export interface LoginRequest {
  email: string;
  password: string;
}

// 用户注册
export interface SignupRequest {
  username: string;
  email: string;
  password: string;
}

// 登录响应
export interface AuthData{
  token: string;
  user: User;
}

// 用户信息
export interface User {
  id: string;
  username: string;
  email: string;
}

export interface UserData {
  user: UserInfo
}

export interface UserInfo {
  // createdAt: string;
  email: string;
  id: string;
  // updatedAt: string;
  username: string;
}
